//
//  BaseModel.swift
//  GamerSky
//
//  Created by QY on 2018/4/2.
//  Copyright © 2018年 QY. All rights reserved.
//

import Foundation

enum ServerCode: Int, Codable {

    /// 请求成功
    case success = 1
    /// 未绑定手机号
    case noBindPhone = 301015
}

struct Model<T: Codable>: Codable {

    /// 返回 200 为成功
    let code: Int
    /// 错误信息
    let msg: String
    /// 数据
    let data: T
    /// 总数
    let total: Int
}
